
public class StudentTest {
	public static void main(String[] args) {
		//创建Student对象
		Student s = new Student();
		//目前创建出来的s对象对应的属性值都是默认值
		//通过该对象该该对象的属性初始化值
		s.name = "张三";
		
		//因为score的类型是Score,也就是Score的对象
		Score score = new Score();
		score.course = "数学";
		score.grade = 100;
		s.score = score;
		
		s.getResult();
	}

}
